home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: Parent Power / The Sunday Times - Parent Power.iso / pc / help / bcd / mac / jh1.1 / javahelp / bin / jhwrap.bat < prev    next >
Encoding:
DOS Batch File  |  2002-05-29  |  602 b   |  30 lines

  1. @echo off
  2. rem %Z%%M% %I% %G%
  3. rem Indirect point for using 1.1 or 1.2 commands
  4. rem uses JHW_KP for classpath and %1 for class
  5. if ."%JHHOME%".==."". goto nojhhome
  6. goto runnit
  7. :nojhhome
  8. echo The environment variable JHHOME has not been set
  9. goto done
  10. :runnit
  11.  
  12. if ."%2".==."-jdk". goto jdk
  13. set JHW_OKP=%CLASSPATH%
  14. set CLASSPATH=%JHW_KP%;%CLASSPATH%
  15. @echo on
  16. java %1 %2 %3 %4 %5 %6 %7 %8 %9
  17. @echo off
  18. set CLASSPATH=%JHW_OKP%
  19. goto done
  20.  
  21. :jdk
  22. set JHW_OKP=%CLASSPATH%
  23. set CLASSPATH=%JHW_KP%;%CLASSPATH%
  24. @echo on
  25. java %1 %3 %4 %5 %6 %7 %8 %9
  26. @echo off
  27. set CLASSPATH=%JHW_OKP%
  28.  
  29. :done
  30.